package com.example.design.tansaction.colleague;

import com.example.design.tansaction.mediator.AbstractMediator;
// 终中介者模式具体同事类
public class Buyer extends AbstractCustomer{
    public Buyer(String orderId, AbstractMediator mediator, String customerName) {
        super(orderId, mediator, customerName);
    }

    @Override
    public void messageTransfer(String orderId, String targetCustomer, String payResult) {
        //调用中介者的消息转发方法
       super.mediator.messageTransfer(orderId, targetCustomer, this, payResult);
    }
}
